]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-global: remove unused shell_global_maybe_gc()
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 12 Jul 2012 23:54:41 +0000 (19:54 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 13 Jul 2012 00:11:38 +0000 (20:11 -0400)
It's not used anywhere, and we're removing the manual garbage collection
invocations anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=679832

src/shell-global.c
src/shell-global.h

index 10fb0b35ee024e4901df58e3c046d0afd1a6ebac..f467e348410b352729cb7025014f7898b7414b41 100644 (file)
@@ -1206,20 +1206,6 @@ shell_global_gc (ShellGlobal *global)
   JS_GC (context);
 }
 
-/**
- * shell_global_maybe_gc:
- * @global: A #ShellGlobal
- *
- * Start a garbage collection process when it would free up enough memory
- * to be worth the amount of time it would take
- * https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_MaybeGC
- */
-void
-shell_global_maybe_gc (ShellGlobal *global)
-{
-  gjs_context_maybe_gc (global->js_context);
-}
-
 static void
 shell_global_on_gc (GjsContext   *context,
                     ShellGlobal  *global)
index 4d92995c92f746874b01e4d5b85017a9cc32d7cf..1c25c04530cdb88393170e405908ada83107d575 100644 (file)
@@ -87,7 +87,6 @@ void    shell_global_get_pointer             (ShellGlobal         *global,
 
 /* JavaScript utilities */
 void     shell_global_gc                   (ShellGlobal *global);
-void     shell_global_maybe_gc             (ShellGlobal *global);
 
 typedef struct {
   guint glibc_uordblks;